/*
 * @(#)PlayRockWithMovePath.java $version 2013. 9. 11.
 *
 */

package com.pace.gonu.ai.model;

import java.util.ArrayList;
import java.util.List;

import com.pace.gonu.model.BoardPath;
import com.pace.gonu.model.PlayRock;

/**
 * @author pace
 */
public class PlayRockWithMovePath {
	private PlayRock playRock;
	private List<BoardPathWithScore> boardPathWithScores = new ArrayList<BoardPathWithScore>();
	private int rockScore = -100;
	private BoardPathWithScore bestBoardPathWithScore;

	public PlayRock getPlayRock() {
		return playRock;
	}
	public void setPlayRock(PlayRock playRock) {
		this.playRock = playRock;
	}

	public int getRockScore() {
		return rockScore;
	}

	public void setRockScore(int rockScore) {
		this.rockScore = rockScore;
	}

	public void add() {
		rockScore += 1;
	}

	public void minus() {
		rockScore -= 1;
	}
	public List<BoardPathWithScore> getBoardPathWithScores() {
		return boardPathWithScores;
	}
	public void setBoardPathWithScores(List<BoardPathWithScore> boardPathWithScores) {
		this.boardPathWithScores = boardPathWithScores;
	}

	public void setBoardPathList(List<BoardPath> movePath) {
		for (BoardPath boardPath : movePath) {
			BoardPathWithScore boardPathWithScore = new BoardPathWithScore();
			boardPathWithScore.setBoardPath(boardPath);
			boardPathWithScores.add(boardPathWithScore);
		}
	}
	public BoardPathWithScore getBestBoardPathWithScore() {
		return bestBoardPathWithScore;
	}
	public void setBestBoardPathWithScore(BoardPathWithScore bestBoardPathWithScore) {
		this.bestBoardPathWithScore = bestBoardPathWithScore;
	}

}
